'''
Created on 2015-8-24
@author: admin
'''

'''
StockHolder

'''
class StockHolder:
    
    def __init__(self):
        self.name=""
        self.property=""
        self.type=""
        self.stockNum=0
        self.rate=""
        self.upAndDown=""
        self.alterRate=""
        
    def reset(self):
        self.name=""
        self.property=""
        self.type=""
        self.stockNum=0
        self.rate=""
        self.upAndDown=""
        self.alterRate=""
        
    def getName(self):
        return self.name;
    def setName(self,name):
        self.name = name;
    def getProperty(self):
        return self.property;
    def setProperty(self,property):
        self.property = property;
    def getType(self):
        return self.type;
    def setType(self,type):
        self.type = type;
    def getStockNum(self):
        return self.stockNum;
    def setStockNum(self,num):
        self.stockNum = num;
    def getRate(self):
        return self.rate;
    def setRate(self,rate):
        self.rate=rate;
    def getUpAndDown(self):
        return self.upAndDown;
    def setUpAndDown(self,ud):
        self.upAndDown = ud;
    def getAlterRate(self):
        return self.alterRate;
    def setAlterRate(self,rate):
        self.alterRate=rate;
    def toList(self):
        return ",".join([self.name,self.property,self.type,self.stockNum,self.rate,self.upAndDown,self.alterRate])    
    